package patterns.proxy;

/**
 * Created by lenovo on 2016/11/28 0028.
 * 演示通过调用代理类获取realImage的对象
 */
public class ProxyPatternDemo {
    public static void main(String[] args){
        IImage image = new ProxyImage("./test.jpg");

        //从磁盘加载
        image.display();
        System.out.println();
    }
}
